package cn.iocoder.yudao.module.system.controller.admin.scorelineconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 分数线配置 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ScoreLineConfigBaseVO {

    @Schema(description = "配置名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "985院校物理类分数线")
    @NotEmpty(message = "配置名称不能为空")
    private String configName;

    @Schema(description = "配置键值", requiredMode = Schema.RequiredMode.REQUIRED, example = "985_PHYSICS")
    @NotEmpty(message = "配置键值不能为空")
    private String configKey;

    @Schema(description = "分数值", requiredMode = Schema.RequiredMode.REQUIRED, example = "680")
    @NotNull(message = "分数值不能为空")
    private Integer scoreValue;

    @Schema(description = "科目类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "PHYSICS")
    @NotEmpty(message = "科目类型不能为空")
    private String subjectType;

    @Schema(description = "配置类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "985")
    @NotEmpty(message = "配置类型不能为空")
    private String configType;

    @Schema(description = "省份", requiredMode = Schema.RequiredMode.REQUIRED, example = "安徽")
    @NotEmpty(message = "省份不能为空")
    private String province;

    @Schema(description = "年份", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025")
    @NotNull(message = "年份不能为空")
    private Integer year;

    @Schema(description = "配置描述", example = "985院校物理类录取分数线，用于重点关注学生识别")
    private String description;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

}